<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Band Info</title>

    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            color: #333;
            margin: 0;
            padding: 20px;
        }

        h2 {
            color: #28a745;
            text-align: center;
            margin-bottom: 20px;
        }

        h3, h4 {
            color: #007bff;
            margin-top: 20px;
            margin-bottom: 10px;
        }

        p {
            margin: 10px 0;
        }

        strong {
            color: #555;
        }

        ul {
            list-style-type: none;
            padding: 0;
        }

        ul li {
            background-color: #fff;
            margin: 10px 0;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        ul li strong {
            font-size: 1.1em;
            color: #333;
        }

        a {
            text-decoration: none;
            color: #007bff;
        }

        a:hover {
            text-decoration: underline;
        }

        button {
            background-color: #28a745;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            margin: 10px 0;
        }

        button:hover {
            background-color: #218838;
        }

        .button-container {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .logout-link {
            display: block;
            text-align: center;
            margin-top: 30px;
            color: #dc3545;
        }

        .logout-link:hover {
            color: #c82333;
        }
    </style>
</head>
<body>
<h2>Welcome {{ username }}!</h2>

<!-- 乐队信息展示 -->
<h3>乐队信息</h3>
<p><strong>乐队名称:</strong> {{ band_name }}</p>
<p><strong>成立时间:</strong> {{ band_settime }}</p>
<p><strong>乐队介绍:</strong> {{ band_intro }}</p>

<!-- 乐队成员信息展示 -->
<h4>乐队成员:</h4>
{% if members %}
<ul>
    {% for member in members %}
    <li>{{ member[0] }} - {{ member[1] }} - {{ member[2] }}</li>
    {% endfor %}
</ul>
<a href="{{ url_for('add_mem') }}">
    <button>添加成员</button>
</a>
{% else %}
<p>乐队尚无成员</p>
<a href="{{ url_for('add_mem') }}">
    <button>添加成员</button>
</a>
{% endif %}

<h4>参加的演唱会：</h4>
{% if concerts %}
<ul>
    {% for concert in concerts %}
    <li>
        <strong>{{ concert[0] }}</strong><br>
        时间：{{ concert[1] }}<br>
        地点：{{ concert[2] }}
    </li>
    {% endfor %}
</ul>
<a href="{{ url_for('band_add_concert') }}">
    <button>创建演唱会</button>
</a>
{% else %}
<p>尚未参加任何演唱会。</p>
<a href="{{ url_for('band_add_concert') }}">
    <button>创建演唱会</button>
</a>
{% endif %}

<!-- 乐队专辑信息展示 -->
<h4>乐队专辑:</h4>
{% if albums %}
<ul>
    {% for album in albums %}
    <li>{{ album[0] }} - {{ album[1] }} - {{ album[2] }}</li>
    {% endfor %}
    <a href="{{ url_for('add_album') }}">
        <button>添加专辑</button>
    </a>
    <a href="{{ url_for('get_all_album') }}">
        <button>所有专辑信息</button>
    </a>
</ul>

{% else %}
<p>乐队尚无专辑</p>
<a href="{{ url_for('add_album') }}">
    <button>添加专辑</button>
</a>
{% endif %}





<br>
<a href="{{ url_for('logout') }}">Logout</a>
</body>
</html>


